#include <stdio.h>

/* Function that takes an input and prints out one word per line. */
 
main() 
{ 
	int c;

	while ((c = getchar()) != EOF) {
		if (c == ' ' || c == '\n' || c == '\t') 
			putchar('\n'); 
		else 
			putchar(c);
	}
} 